package com.token.iot.bratterycharging.boss.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.token.iot.bratterycharging.boss.web.Agents;
import com.token.iot.bratterycharging.boss.web.Merchant;

@Repository
public interface MerchantDAO {
	
	
	
	/**
	 * 
	 * @param value
	 * @return
	 */
	long insertMerchant(Merchant value);
	Merchant selectOneById(@Param("id")String id);
	Merchant selectByUserNamePassword(@Param("userName") String userName,@Param("password") String password);

	List<Merchant> list(@Param("agentId")String agentId);
	
	List<Merchant> listbyMerchantName(@Param("agentId")String agentId,@Param("merchantName")String merchantName);
	
}
